• Artikel
  • API Dokumentation
Show / Hide Table of Contents
  • Sokoban
    • AppSettings
    • Global
  • Sokoban.Control
    • GameFlow
    • GameState
    • ItemType
    • Level
    • Move
    • Provider
  • Sokoban.Model
    • Image
    • ImageConfig
    • LevelReader
    • LocalUser
    • OnlineTop10
    • User
    • UserLoft
  • Sokoban.View
    • CreditForm
    • GameForm
    • IntroForm
    • Severe

Class Level

Repräsentiert ein Level im Spiel

Inheritance
System.Object
Level
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Sokoban.Control
Assembly: Sokoban.dll
Syntax
public class Level

Constructors

Level(String, Point, ItemType[][])

Neues Level Objekt erstellen

Declaration
public Level(string name, Point dimensions, ItemType[][] space)
Parameters
Type Name Description
System.String name

Name des Levels

System.Drawing.Point dimensions

Ausmaße des Levels

ItemType[][] space

Inhalt des Levels

Properties

Dimensions

Ausmaße des Levels

Declaration
public Point Dimensions { get; }
Property Value
Type Description
System.Drawing.Point

Name

Der Name des Levels (zur Anzeige in der View)

Declaration
public string Name { get; }
Property Value
Type Description
System.String

Space

Der eigentliche Inhalt des Levels

Declaration
public ItemType[][] Space { get; }
Property Value
Type Description
ItemType[][]

Methods

Clone()

Erstellt eine vollständige Kopie des Levels

Declaration
public Level Clone()
Returns
Type Description
Level

Das selbe Level als Kopie

See Also

ItemType
LevelReader
Back to top Generated by DocFX